JsAccessibleTypes

public final class JsAccessibleTypes

A registry of types that are accessible from JavaScript.

It can be used to grant access to the types that cannot be made accessible for JavaScript via the JsAccessible annotation, such as core Java classes.

The rules for making a type accessible from JavaScript are just the same as for the JsAccessible annotation.

This class does not include the types that are made accessible from JavaScript via the JsAccessible annotation. The methods of this class cannot be used to add, remove, or check accessibility for a type annotated with the JsAccessible annotation.

Since

7.20

Functions

Link copied to clipboard
public static boolean isAccessible(Class<? extends Object> type)
Indicates whether the type is made accessible to JavaScript using this class.
Link copied to clipboard
public static void makeAccessible(Array<Class<? extends Object>> publicTypes)
Adds the publicTypes to the types that are accessible from JavaScript.
Link copied to clipboard
public static void makeInaccessible(Array<Class<? extends Object>> publicTypes)
Removes the publicTypes from the types that are accessible from JavaScript.